<script src="<?php echo base_url() ?>commons/tablas/media/js/jquery.js" type="text/javascript"></script>
<script src="<?php echo base_url() ?>commons/tablas/media/js/jquery.dataTables.js" type="text/javascript"></script>
<script src="<?php echo base_url() ?>commons/tablas/extras/TableTools/media/js/ZeroClipboard.js" type="text/javascript"></script>
<script src="<?php echo base_url() ?>commons/tablas/extras/TableTools/media/js/TableTools.js" type="text/javascript"></script>

<style type="text/css" title="currentStyle">
            @import "<?php echo base_url() ?>commons/tablas/media/css/demo_page.css";
            @import "<?php echo base_url() ?>commons/tablas/media/css/demo_table.css";
                        @import "<?php echo base_url() ?>commons/tablas/extras/TableTools/media/css/TableTools.css";
        </style>
<script type="text/javascript">
    var t=jQuery.noConflict();
            t(document).ready(function() {
                t('#example').dataTable( {
                    "sPaginationType": "full_numbers",
                  "sDom": 'T C lfrtip', 
                    "oTableTools": { 
                    "sSwfPath": "<?php echo base_url() ?>commons/tablas/extras/TableTools/media/swf/copy_csv_xls_pdf.swf", 
                    "aButtons": [ 
                    "xls", 
                    ], 
                    },
               } );
    } );
</script>


<form class="well form-horizontal span8" action="<?php echo base_url() . "admin.php/asigna_convalida/modificadatos" ?>" method="post" enctype="multipart/form-data" >
    <legend>CARRERA: <?php  echo ($materias[0][0]['nombre_car'])?></legend>

 
                <div id="tablamatriculai" >
                    <table id="example" class="table table-bordered table-striped table-condensed">
                        <thead>
                            <tr>
                                <th>COD</th>
                                <th>SEMESTRE</th>
                                <th>MATERIA</th>
                                <th>CRED</th>
                                <th>TIPO</th>
                            </tr>
                        </thead>
                        <tbody>
                            <?php
                            
                            $nro_filas = 0;
                            if (!empty($materias)) {
                                $nro_filas = count($materias);
                                
                                
                                foreach ($materias as $i => $mat) {
                                    //$titulo='';
                                    foreach ($mat as $key => $row) {
                                        # code...
                                    
                                                

                                          

                                    ?>
                                    <tr>
                                    <td><?php echo ($row['codigo_cic']); ?></td>


                                        <td><?php 
                                        //if ($titulo==$row['nombre_cic']){
                                         //   echo '';

                                         //   }else {
                                            echo ($row['nombre_cic']);
                                         //   $titulo=$row['nombre_cic'];

                                         //       } 
                                        ?></td>
                                        <td><?php echo ($row['nombre_mat']) ?></td>
                                        <td ><?php echo ($row['creditos_mat']) ?></td>  
                                        <td ><?php echo ($row['tipomat_mat']) ?></td>   
                                    </tr>
                                    <?php
                                }
                                }
                                }
                                
                            
                            ?>
                                    
                        </tbody>
                    </table>        
                </div>     

   <div class="controls">
   <!--     <button type="submit" class="btn">Modificar Matricula</button>
-->


    </div>   
  









</form>


